home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Computer Life 1995 December
/
Computer Life December 1995.iso
/
tapcis
/
bquotes.scr
next >
Wrap
INI File
|
1995-10-08
|
3KB
|
97 lines
[*About this script*]
This script captures stock quotes from Current Quotes. By default, it
captures a quote for H&R Block stock, the Dow-Jones Industrials Index,
and the Standard & Poors 500 Index. You can capture other quotes,
or additional quotes, by listing the issue symbols under the "*Quotes*"
heading below. You can also "install" this script as a service (with
Setup|Service) and then modify the service.SVC file (in the settings
directory), adding a [*Quotes*] heading and a list of issue symbols to
be used instead of the ones listed in this script file.
If the issue symbols you place in the *Quotes* list are entered one per
line, the script will request 10 quotes at a time. If you would prefer to
see the pricing information grouped differently, with fewer or more than
ten symbols per report "page", you can enter multiple symbols on a line,
separating them with commas.
If you aren't sure what issue symbols to to use, logon in Interactive
mode and GO SYMBOL, which is part of CompuServe's basic services. For
information and discussion about investing, check out the Investors
Forum (CIS:INVFOR).
Loren Jenkins [76702,1006] - September 1995
[*Script Setup*]
Title=Get Basic Stock Quotes
[*Quotes*]
HRB
DJ 30
SP 500
[Begin]
Echo "Getting Current Quotes"
if ( @capName$ = "" ) Let @capName$ = @pathMsg$ @svcName$ '.MSG'
WaitList
1 = "^MIssue:"
2 = "^J!"
2 = "^JPress <CR> to continue !"
3 = "^JIssue:"
endlist
Let @hdrSub$ = "Current Quotes"
Let @hdrNum = @on
Send "GO CIS:CQUOTES"
Wait "^JCurrent Q"
Wait "^J"
CapHeader
Wait "^JEnter ticker"
CapClose
DoWaitList
Let prompt# = @waitMatch#
Let reqQuote$ = ""
Let reqCount# = 0
ForEach in Quotes[] gosub "HandleQuotes"
if ( reqQuote$ ) Gosub 'DoCapture'
Send ''
Wait "!"
Echo "End of script"
End
[HandleQuotes]
if ( @strstr(@arrItem$,",") ) goto 'IssueList'
if ( @strstr(@arrItem$,",") ) return
if ( reqQuote$ ) Let reqQuote$ = reqQuote$ ","
Let reqQuote$ = reqQuote$ @arrItem$
Let reqCount# = reqCount# + 1
if ( reqCount# = 10 ) gosub 'DoCapture'
return
[IssueList]
if ( reqQuote$ ) gosub 'DoCapture'
Let reqQuote$ = @arrItem$
gosub 'DoCapture'
Return
[DoCapture]
if ( prompt# = 2 ) gosub 'NewPrompt'
Send reqQuote$
Wait "^J"
CapOpen
DoWaitList
Let prompt# = @waitMatch#
Let reqQuote$ = ""
Let reqCount# = 0
CapClose
Return
[NewPrompt]
Send '/GO CIS:CQUOTES'
DoWaitList
Let Prompt# = @waitMatch#
Return